//
//  API.h
//  YouTao
//
//  Created by David on 15/1/22.
//  Copyright (c) 2015年 KOTO. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface API : NSObject

extern NSString * const MDYApiBaseUrl;
extern NSString * const YHJApiBaseUrl;

/**
 *  得到完整api
 *
 *  @param api api名称
 *
 *  @return 完整的api路径
 */
extern NSString * GetMDYApiWithName(NSString *apiName);
extern NSString * GetYHJApiWithName(NSString *apiName);

#pragma mark - 买得易API
// -------------------------- 买得易API

/**
 *  将买得易接口中的shoplink字符串直接拼接到接口访问
 */
extern NSString * const API_MDYShopLink;

/**
 splink:iphone
 splinkhd:ipad
 sptype=1:子分类
 */
// sp https://www.maideyi.com/api/sp1.json
extern NSString * const API_MDYSP1;
// sp https://www.maideyi.com/api/sp2.json
extern NSString * const API_MDYSP2;
// sp https://www.maideyi.com/api/sp3.json
extern NSString * const API_MDYSP3;
// sp https://www.maideyi.com/api/sp4.json
extern NSString * const API_MDYSP4;
// sp https://www.maideyi.com/api/sp5.json
extern NSString * const API_MDYSP5;

//新闻资讯 https://www.maideyi.com/api/zx.json
extern NSString * const API_MDYzx;

//优惠 https://www.maideyi.com/api/yh.json
extern NSString * const API_MDYyh;
//淘客 https://www.maideyi.com/api/taobao.json
extern NSString * const API_MDYtaobao;
//京东买得易 https://www.maideyi.com/api/jd.json
extern NSString * const API_MDYjd;
//海淘 https://www.maideyi.com/api/ht.json
extern NSString * const API_MDYht;

// 14 https://www.maideyi.com/api/14.json【购物导航 首页最后一屏数据】
extern NSString * const API_MDY14;

//精选=优选商品，比优选商品多两个字段：author，view: https://www.maideyi.com/api/gwdr.json
extern NSString * const API_MDYgwdr;
//今日特价: https://www.maideyi.com/api/107.json
extern NSString * const API_MDY107;
//优选商品 https://www.maideyi.com/api/youxuan.json
extern NSString * const API_MDYyouxuan;
//首屏顶部推荐商品: top
extern NSString * const API_MDYtop;

//手机 36
extern NSString * const API_MDY36;
//化妆品 38
extern NSString * const API_MDY38;
//珠宝饰品 44
extern NSString * const API_MDY44;
//运动户外 54
extern NSString * const API_MDY54;
//女装 63
extern NSString * const API_MDY63;
//女鞋 64
extern NSString * const API_MDY64;
//男装 65
extern NSString * const API_MDY65;
//男鞋 66
extern NSString * const API_MDY66;
//箱包 67
extern NSString * const API_MDY67;
//零食 71
extern NSString * const API_MDY71;
//内衣 81
extern NSString * const API_MDY81;
//个人护理 82
extern NSString * const API_MDY82;
//腕表 83
extern NSString * const API_MDY83;
//眼镜 84
extern NSString * const API_MDY84;
//数码 85
extern NSString * const API_MDY85;
//电脑办公 86
extern NSString * const API_MDY86;
//母婴 87
extern NSString * const API_MDY87;
//玩具 88
extern NSString * const API_MDY88;
//进口食品 90
extern NSString * const API_MDY90;
//茶酒 91
extern NSString * const API_MDY91;
//大家电 92
extern NSString * const API_MDY92;
//生活电器 93
extern NSString * const API_MDY93;
//家具建材 94
extern NSString * const API_MDY94;
//汽配 96
extern NSString * const API_MDY96;
//汽车用品 97
extern NSString * const API_MDY97;
//家纺 98
extern NSString * const API_MDY98;
//布艺 99
extern NSString * const API_MDY99;
//鲜花 100
extern NSString * const API_MDY100;
//医药保健 101
extern NSString * const API_MDY101;
//厨具 102
extern NSString * const API_MDY102;
//收纳 103
extern NSString * const API_MDY103;
//宠物 104
extern NSString * const API_MDY104;
//图书音像 105
extern NSString * const API_MDY105;
//天猫 106
extern NSString * const API_MDY106;

#pragma mark - 优惠价API
// --------------------------------------------------- 优惠价API
//全部 http://www.youhuijia.com/app/all.json
extern NSString * const API_YHJAll;
//顶部轮动 http://www.youhuijia.com/app/top.json
extern NSString * const API_YHJBanner;
//天天惠顶部轮动 http://www.youhuijia.com/app/days.json
extern NSString * const API_YHJTianTianHuiBanner;
//最新 http://www.youhuijia.com/app/new.json
extern NSString * const API_YHJZuiXin;
//最热 http://www.youhuijia.com/app/hot.json
extern NSString * const API_YHJZuiRe;
//精选 http://www.youhuijia.com/app/sp.json
extern NSString * const API_YHJJingXuan;
//新品：http://www.youhuijia.com/app/np.json
extern NSString * const API_YHJXinPin;
//特卖 http://www.youhuijia.com/app/9.json
extern NSString * const API_YHJTeMai;
//天天惠 http://www.youhuijia.com/app/day.json
extern NSString * const API_YHJTianTianHui;

//母婴 http://www.youhuijia.com/app/my.json
extern NSString * const API_YHJMuYing;
//女装 http://www.youhuijia.com/app/37.json
extern NSString * const API_YHJNvZhuang;
//男装 http://www.youhuijia.com/app/38.json
extern NSString * const API_YHJNanZhuang;
//鞋包 http://www.youhuijia.com/app/39.json
extern NSString * const API_YHJXieBao;
//内衣http://www.youhuijia.com/app/40.json
extern NSString * const API_YHJNeiYi;
//饰品 http://www.youhuijia.com/app/41.json
extern NSString * const API_YHJShiPin;
//运动 http://www.youhuijia.com/app/42.json
extern NSString * const API_YHJYunDong;
//户外 http://www.youhuijia.com/app/43.json
extern NSString * const API_YHJHuWai;
//玩具 http://www.youhuijia.com/app/44.json
extern NSString * const API_YHJWanJu;
//美妆 http://www.youhuijia.com/app/45.json
extern NSString * const API_YHJMeiZhuang;
//汽车用品 http://www.youhuijia.com/app/46.json
extern NSString * const API_YHJQiCheYongPin;
//健康 http://www.youhuijia.com/app/47.json
extern NSString * const API_YHJJianKang;
//手机 http://www.youhuijia.com/app/48.json
extern NSString * const API_YHJShouJi;
//数码 http://www.youhuijia.com/app/dg.json
extern NSString * const API_YHJShuMa;
//时尚 http://www.youhuijia.com/app/fs.json
extern NSString * const API_YHJShiShang;
//家居 http://www.youhuijia.com/app/home.json
extern NSString * const API_YHJJiaJu;
//美食 http://www.youhuijia.com/app/ms.json
extern NSString * const API_YHJMeiShi;

//母婴百科 http://www.youhuijia.com/app/muying.json
extern NSString * const API_YHJMuYingBaiKe;
//产前产后 http://www.youhuijia.com/app/cqch.json
extern NSString * const API_YHJChanQianChanHou;
//孕妈穿着 http://www.youhuijia.com/app/ymcz.json
extern NSString * const API_YHJYunMaChuangZhuo;
//孕妈营养 http://www.youhuijia.com/app/ymyr.json
extern NSString * const API_YHJYunMaYingYang;
//孕妈护肤 http://www.youhuijia.com/app/ymff.json
extern NSString * const API_YHJYunMaHuFu;
//纸尿裤 http://www.youhuijia.com/app/zlk.json
extern NSString * const API_YHJZhiNiaoKu;
//奶粉 http://www.youhuijia.com/app/nf.json
extern NSString * const API_YHJNaiFen;
//童装童鞋 http://www.youhuijia.com/app/tztx.json
extern NSString * const API_YHJTongZhuangTongXie;
//喂养洗护 http://www.youhuijia.com/app/wyxh.json
extern NSString * const API_YHJWeiYangXiHu;
//童车床 http://www.youhuijia.com/app/tcc.json
extern NSString * const API_YHJTongCheChuang;

#pragma mark - 多米新闻API
// -------------------------- 多米新闻API
//热点 : http://cn.doome.com/api/hot.json
extern NSString * const API_DMHot;
//娱乐 : http://cn.doome.com/api/2.json  (yl.json)
extern NSString * const API_DMYuLe;
//动画 : http://cn.doome.com/api/780.json  (dh.json)
extern NSString * const API_DMDongHua;
//音乐 : http://cn.doome.com/api/776.json  (yy.json)
extern NSString * const API_DMYinYue;
//舞蹈 : http://cn.doome.com/api/777.json   (wd.json)
extern NSString * const API_DMWuDao;
//游戏 : http://cn.doome.com/api/773.json    (yx.json)
extern NSString * const API_DMYouXi;
//科技 : http://cn.doome.com/api/5.json   (kj.json)
extern NSString * const API_DMKeJi;
//影视 : http://cn.doome.com/api/774.json  (ys.json)  (暂时没数据)
extern NSString * const API_DMYingShi;
//体育 : http://cn.doome.com/api/7.json   (ty.json)
extern NSString * const API_DMTiYu;
//彼女 : http://cn.doome.com/api/11.json  (pl.jspn)
extern NSString * const API_DMBiNv;
//军事 : http://cn.doome.com/api/4.json  (js.json)
extern NSString * const API_DMJunShi;
//新闻 : http://cn.doome.com/api/1.json  (xw.json)
extern NSString * const API_DMXinWen;

#pragma mark - 搜索接口
// 购物搜索 cnebuy，直接拼接关键字
extern NSString * const API_SearchCnebuy;
extern NSString * const API_SearchCnebuy_iPad;

// 购物搜索 doome，直接拼接关键字
extern NSString * const API_SearchDoome;
extern NSString * const API_SearchDoome_iPad;

// 多米搜索，直接拼接关键字
extern NSString * const API_DoomeSearch;

// 关键字网址检索接口 http://doo.me/gw/gw.json
extern NSString * const API_TagsToSite;

// 热门搜索（搜索热词）接口：https://www.maideyi.com/api/keyword.json
extern NSString * const API_MDYHotSearchWords;

// 多米新闻 接口：http://cn.doome.com/api/thenews.json
extern NSString * const API_DoomeNews;


#pragma mark ----------------------------- maideyi.com news 新闻
/*!
 *  maideyi.com news 新闻
 *  https://www.maideyi.com/api/xx.json
 */

//手机 147
extern NSString * const API_MDYNewsShouJi;
//汽车  8
extern NSString * const API_MDYNewsQiChe;
//数码  57
extern NSString * const API_MDYNewsShuMa;
//游戏 148
extern NSString * const API_MDYNewsYouXi;
//电脑  149
extern NSString * const API_MDYNewsDianNao;
//社会新闻 151
extern NSString * const API_MDYNewsSheHui;
//母婴  4
extern NSString * const API_MDYNewsMuYing;
//美容  150
extern NSString * const API_MDYNewsMeiRong;
//健康  10
extern NSString * const API_MDYNewsJianKang;
//宠物  11
extern NSString * const API_MDYNewsChongWu;
//科技   5
extern NSString * const API_MDYNewsKeJi;
//时尚   6
extern NSString * const API_MDYNewsShiShang;
//户外  54
extern NSString * const API_MDYNewsHuWai;
//旅游  9
extern NSString * const API_MDYNewsLvYou;
@end
